<form action="{'Instock/insert'|U}" method="POST" beforeSubmit="checkInstockRate">
{if $rs}
{wz action='list,reset'}
{else}
{wz action="save,list,reset"}
{/if}
<div class="add_box">
<input type="hidden" name="load_container_id" value="{$rs.id}">
<table cellspacing="0" cellpadding="0" class="add_table">
	<tbody>
		<tr>
			<th colspan="4">{$lang.title_1}</th>
		</tr>
		<tr>
			<td colspan="4">
				<div class="basic_tb">  
					<ul> 
						<li>
						<input type="hidden" name="flow" id="flow" value="instock">
						{$lang.container_no}：
							{if $rs}
      							<input type="hidden" name="container_no" value="{$rs.container_no}">
      							{$rs.container_no}
      						{else}
      							<input type="text" name="container_no" class="spc_input" >__*__
      						{/if}
      					</li>
						<li>{$lang.trans_comp}：
							{if $rs}
      							<input type="hidden" name="logistics_id" value="{$rs.logistics_id}">
      							{$rs.logistics_name}
 							{else}
      							<input type="hidden" name="logistics_id">
      							<input name="temp[trans_comp]" url="{'AutoComplete/logistics'|U}" jqac />{if C("instock.instock_logistics_funds")==1}__*__{/if}
     						{/if}
     					</li> 
     					{if 'instock.add'|C==2}
						<li>{$lang.load_date}：
       							<input type="hidden" name="get_date" value="{$rs.load_date}">
      							{$rs.fmd_load_date}
      					</li>
      					
						<li>{$lang.delivery_date}：
      							<input type="hidden" name="go_date" value="{$rs.delivery_date}">
      							{$rs.fmd_delivery_date}
      					</li>
						<li>{$lang.arrive_date}：
      							<input type="hidden" name="arrive_date" value="{$rs.expect_arrive_date}">
      							{$rs.fmd_expect_arrive_date}
      					</li>
      					{/if}
						<li>{$lang.real_arrive_date}：
							<input type="text" name="real_arrive_date" value="{$this_day}" class="Wdate spc_input" onClick="WdatePicker()"/>__*__
						</li>    
						{if C('instock.instock_logistics_funds')==1}
						<!--{*入库显示运费 *}-->
						<li>{$lang.trans_price}：<input type="text" name="delivery_fee" id="total_delivery_fee" class="spc_input">__*__</li>
						{currency data=C('LOGISTICS_CURRENCY') name="currency_id" initvalue=C('CURRENCY') type='li' title=$lang.trans_price_currency require=""}
						{/if}
						{warehouse type="li" title=$lang.warehouse hidden=["name"=>"warehouse_id"]  name="warehouse_name" require=""}
					</ul>
				</div>  	
  			</td>
  		</tr> 
    	<tr>
    		<th colspan="4">{$lang.title_2}</th></tr>
    	<tr>
    		<td colspan="4" class="t_center">
    		{if C('instock.add')==2}
    			{include file="Instock/flow_detail.tpl"}
    		{else}
    			{include file="Instock/detail.tpl"}
    		{/if}
    		</td>
    	</tr>
    	<tr>
    		<td colspan="4">
    			<table cellspacing="0" cellpadding="0" width="100%">
    				<tr>
	   					<td valign="top" width="15%">{$lang.comments}：</td>
	   					<td colspan="3" class="t_left" valign="top"><textarea name="comments" id="comments" class="textarea_height80"></textarea> </td>
					</tr>
	    		</table>
	    	</td>
	    </tr> 	    
    </tbody>
</table>
   {staff}
</div>
</form>